install_sh = @install_sh@
mkdir_p = @mkdir_p@
INSTALL = @INSTALL@
PLUGINDIR = @prefix@/plugins
WISEDIR = @prefix@/wiseService
BINDIR = @prefix@/bin
CP = /bin/cp

all:
	echo "WISE!"

check:
	npm ci --production

install:
	@mkdir -p "$(WISEDIR)" "$(WISEDIR)/vueapp"
	$(INSTALL) *.js wiseService.ini.sample package.json package-lock.json $(WISEDIR)
	npm ci
	npm run build
	$(CP) -pr favicon.ico $(WISEDIR)
	$(CP) -pr vueapp/dist "$(WISEDIR)/vueapp"
	(cd $(WISEDIR) ; npm ci --production)
	rm -f $(VIEWERDIR)/package-lock.json

distclean realclean clean:
	rm -f *.o *.so
